package com.desksoft.ecommerce.entity.logistics.dto;

import java.util.ArrayList;
import java.util.List;

public class PersmoduExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PersmoduExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGroupidIsNull() {
            addCriterion("GroupID is null");
            return (Criteria) this;
        }

        public Criteria andGroupidIsNotNull() {
            addCriterion("GroupID is not null");
            return (Criteria) this;
        }

        public Criteria andGroupidEqualTo(String value) {
            addCriterion("GroupID =", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotEqualTo(String value) {
            addCriterion("GroupID <>", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidGreaterThan(String value) {
            addCriterion("GroupID >", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidGreaterThanOrEqualTo(String value) {
            addCriterion("GroupID >=", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLessThan(String value) {
            addCriterion("GroupID <", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLessThanOrEqualTo(String value) {
            addCriterion("GroupID <=", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLike(String value) {
            addCriterion("GroupID like", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotLike(String value) {
            addCriterion("GroupID not like", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidIn(List<String> values) {
            addCriterion("GroupID in", values, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotIn(List<String> values) {
            addCriterion("GroupID not in", values, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidBetween(String value1, String value2) {
            addCriterion("GroupID between", value1, value2, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotBetween(String value1, String value2) {
            addCriterion("GroupID not between", value1, value2, "groupid");
            return (Criteria) this;
        }

        public Criteria andModuidIsNull() {
            addCriterion("ModuID is null");
            return (Criteria) this;
        }

        public Criteria andModuidIsNotNull() {
            addCriterion("ModuID is not null");
            return (Criteria) this;
        }

        public Criteria andModuidEqualTo(String value) {
            addCriterion("ModuID =", value, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidNotEqualTo(String value) {
            addCriterion("ModuID <>", value, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidGreaterThan(String value) {
            addCriterion("ModuID >", value, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidGreaterThanOrEqualTo(String value) {
            addCriterion("ModuID >=", value, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidLessThan(String value) {
            addCriterion("ModuID <", value, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidLessThanOrEqualTo(String value) {
            addCriterion("ModuID <=", value, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidLike(String value) {
            addCriterion("ModuID like", value, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidNotLike(String value) {
            addCriterion("ModuID not like", value, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidIn(List<String> values) {
            addCriterion("ModuID in", values, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidNotIn(List<String> values) {
            addCriterion("ModuID not in", values, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidBetween(String value1, String value2) {
            addCriterion("ModuID between", value1, value2, "moduid");
            return (Criteria) this;
        }

        public Criteria andModuidNotBetween(String value1, String value2) {
            addCriterion("ModuID not between", value1, value2, "moduid");
            return (Criteria) this;
        }

        public Criteria andModutypeIsNull() {
            addCriterion("ModuType is null");
            return (Criteria) this;
        }

        public Criteria andModutypeIsNotNull() {
            addCriterion("ModuType is not null");
            return (Criteria) this;
        }

        public Criteria andModutypeEqualTo(Integer value) {
            addCriterion("ModuType =", value, "modutype");
            return (Criteria) this;
        }

        public Criteria andModutypeNotEqualTo(Integer value) {
            addCriterion("ModuType <>", value, "modutype");
            return (Criteria) this;
        }

        public Criteria andModutypeGreaterThan(Integer value) {
            addCriterion("ModuType >", value, "modutype");
            return (Criteria) this;
        }

        public Criteria andModutypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ModuType >=", value, "modutype");
            return (Criteria) this;
        }

        public Criteria andModutypeLessThan(Integer value) {
            addCriterion("ModuType <", value, "modutype");
            return (Criteria) this;
        }

        public Criteria andModutypeLessThanOrEqualTo(Integer value) {
            addCriterion("ModuType <=", value, "modutype");
            return (Criteria) this;
        }

        public Criteria andModutypeIn(List<Integer> values) {
            addCriterion("ModuType in", values, "modutype");
            return (Criteria) this;
        }

        public Criteria andModutypeNotIn(List<Integer> values) {
            addCriterion("ModuType not in", values, "modutype");
            return (Criteria) this;
        }

        public Criteria andModutypeBetween(Integer value1, Integer value2) {
            addCriterion("ModuType between", value1, value2, "modutype");
            return (Criteria) this;
        }

        public Criteria andModutypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ModuType not between", value1, value2, "modutype");
            return (Criteria) this;
        }

        public Criteria andPersidIsNull() {
            addCriterion("PersID is null");
            return (Criteria) this;
        }

        public Criteria andPersidIsNotNull() {
            addCriterion("PersID is not null");
            return (Criteria) this;
        }

        public Criteria andPersidEqualTo(String value) {
            addCriterion("PersID =", value, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidNotEqualTo(String value) {
            addCriterion("PersID <>", value, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidGreaterThan(String value) {
            addCriterion("PersID >", value, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidGreaterThanOrEqualTo(String value) {
            addCriterion("PersID >=", value, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidLessThan(String value) {
            addCriterion("PersID <", value, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidLessThanOrEqualTo(String value) {
            addCriterion("PersID <=", value, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidLike(String value) {
            addCriterion("PersID like", value, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidNotLike(String value) {
            addCriterion("PersID not like", value, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidIn(List<String> values) {
            addCriterion("PersID in", values, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidNotIn(List<String> values) {
            addCriterion("PersID not in", values, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidBetween(String value1, String value2) {
            addCriterion("PersID between", value1, value2, "persid");
            return (Criteria) this;
        }

        public Criteria andPersidNotBetween(String value1, String value2) {
            addCriterion("PersID not between", value1, value2, "persid");
            return (Criteria) this;
        }

        public Criteria andQxtypeIsNull() {
            addCriterion("QXType is null");
            return (Criteria) this;
        }

        public Criteria andQxtypeIsNotNull() {
            addCriterion("QXType is not null");
            return (Criteria) this;
        }

        public Criteria andQxtypeEqualTo(Integer value) {
            addCriterion("QXType =", value, "qxtype");
            return (Criteria) this;
        }

        public Criteria andQxtypeNotEqualTo(Integer value) {
            addCriterion("QXType <>", value, "qxtype");
            return (Criteria) this;
        }

        public Criteria andQxtypeGreaterThan(Integer value) {
            addCriterion("QXType >", value, "qxtype");
            return (Criteria) this;
        }

        public Criteria andQxtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("QXType >=", value, "qxtype");
            return (Criteria) this;
        }

        public Criteria andQxtypeLessThan(Integer value) {
            addCriterion("QXType <", value, "qxtype");
            return (Criteria) this;
        }

        public Criteria andQxtypeLessThanOrEqualTo(Integer value) {
            addCriterion("QXType <=", value, "qxtype");
            return (Criteria) this;
        }

        public Criteria andQxtypeIn(List<Integer> values) {
            addCriterion("QXType in", values, "qxtype");
            return (Criteria) this;
        }

        public Criteria andQxtypeNotIn(List<Integer> values) {
            addCriterion("QXType not in", values, "qxtype");
            return (Criteria) this;
        }

        public Criteria andQxtypeBetween(Integer value1, Integer value2) {
            addCriterion("QXType between", value1, value2, "qxtype");
            return (Criteria) this;
        }

        public Criteria andQxtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("QXType not between", value1, value2, "qxtype");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("UserID is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("UserID is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(String value) {
            addCriterion("UserID =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(String value) {
            addCriterion("UserID <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(String value) {
            addCriterion("UserID >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(String value) {
            addCriterion("UserID >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(String value) {
            addCriterion("UserID <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(String value) {
            addCriterion("UserID <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLike(String value) {
            addCriterion("UserID like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotLike(String value) {
            addCriterion("UserID not like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<String> values) {
            addCriterion("UserID in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<String> values) {
            addCriterion("UserID not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(String value1, String value2) {
            addCriterion("UserID between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(String value1, String value2) {
            addCriterion("UserID not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andPowerIsNull() {
            addCriterion("Power is null");
            return (Criteria) this;
        }

        public Criteria andPowerIsNotNull() {
            addCriterion("Power is not null");
            return (Criteria) this;
        }

        public Criteria andPowerEqualTo(Integer value) {
            addCriterion("Power =", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerNotEqualTo(Integer value) {
            addCriterion("Power <>", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerGreaterThan(Integer value) {
            addCriterion("Power >", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerGreaterThanOrEqualTo(Integer value) {
            addCriterion("Power >=", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerLessThan(Integer value) {
            addCriterion("Power <", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerLessThanOrEqualTo(Integer value) {
            addCriterion("Power <=", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerIn(List<Integer> values) {
            addCriterion("Power in", values, "power");
            return (Criteria) this;
        }

        public Criteria andPowerNotIn(List<Integer> values) {
            addCriterion("Power not in", values, "power");
            return (Criteria) this;
        }

        public Criteria andPowerBetween(Integer value1, Integer value2) {
            addCriterion("Power between", value1, value2, "power");
            return (Criteria) this;
        }

        public Criteria andPowerNotBetween(Integer value1, Integer value2) {
            addCriterion("Power not between", value1, value2, "power");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}